<%-- 
    Document   : register
    Created on : Oct 17, 2011, 10:55:52 PM
    Author     : NGUYEN CONG BINH
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page import="net.tanesha.recaptcha.ReCaptcha" %>
<%@ page import="net.tanesha.recaptcha.ReCaptchaFactory" %>
<body>


    <link type="text/css" rel="stylesheet" media="screen" href="CSS/layout.css">
    <div id="wrapper">  	  	
        <div id="content">
            <div class="breadcrumb">
                <span><img height="12" width="12" alt="Trang chủ" src="Images/Images_css_files/icon_link.gif"><a href="#">Trang chủ</a></span><span>Đăng nhập</span>
            </div>
            <div class="clear"></div>
            <div class="other_content">
                <div class="top_other_content">
                    <div class="ltop_other_content"></div>
                    <div class="rtop_other_content"></div>	
                </div>

                <form action="RegisterController" method="get" name="frmRegister" id="frm">

                    <div class="login">
                        <div class="banner_login"><img height="250" width="420" alt="Đăng nhập" src="Images/Images_css_files/banner_login.jpg"></div>
                        <div class="box_login">
                            <div class="top_box_login">
                                <div class="ltop_box_login"></div>
                                <div class="rtop_box_login"></div>
                            </div>
                            <div class="center_box_login">
                                <h2 class="title">ĐĂNG KÝ: </h2>
                                <div class="group_listing_input">

                                    <div class="listing_input">
                                        <div class="post_label_container">
                                            <label class="postLabel">Tên đăng nhập:</label>
                                        </div>
                                        <input type="text" class="login_text_input" name="tb_tendangnhap" id="tb_tendangnhap">
                                    </div>   </br>

                                    <div class="listing_input">
                                        <div class="post_label_container">
                                            <label class="postLabel">Mật khẩu:</label>
                                        </div>
                                        <input type="password" class="login_text_input" name="tb_matkhau" id="tb_matkhau">
                                    </div>	</br>

                                    <div class="listing_input">
                                        <div class="post_label_container">
                                            <label class="postLabel">Nhập lại mật khẩu:</label>
                                        </div>
                                        <input type="password" class="login_text_input" name="tb_matkhau2" id="tb_matkhau2">
                                    </div>	</br>

                                    <div class="listing_input">
                                        <div class="post_label_container">
                                            <label class="postLabel">Họ tên: </label>
                                        </div>
                                        <input type="text" class="login_text_input" name="tb_hovaten" id="tb_hovaten">
                                    </div>	</br>

                                    <div class="listing_input">
                                        <div class="post_label_container">
                                            <label class="postLabel">Email: </label>
                                        </div>
                                        <input type="text" class="login_text_input" name="tb_email" id="tb_email"> 
                                    </div>      </br>

                                    <div class="listing_input">
                                        <div class="post_label_container">
                                            <label class="postLabel">Số điện thoại: </label>
                                        </div>
                                        <input type="text" class="login_text_input" name="tb_sodienthoai" id="tb_sodienthoai">
                                    </div></br>

                                    <div class="listing_input">
                                        <div class="post_label_container">
                                            <label class="postLabel">Địa chỉ: </label>
                                        </div>
                                        <input type="text" class="login_text_input" name="tb_diachi" id="tb_diachi">
                                    </div>
                                    <%
                                        if (request.getAttribute("Error") != null) {%>
                                    <div align="center"><span class="warning" > <% out.println(request.getAttribute("Error"));%></span></div>
                                    <%}%>
                                    <div class="text_remember">&nbsp; </div>
                                    <div align="center">    
                                        <!--Bắt đầu captcha -->
                                        <%
                                            String your_public_key = "6LdRqMkSAAAAAPwajDjWuUDmFOE7RiW9GRU7DDbA";
                                            String your_private_key = "6LdRqMkSAAAAAF5sYB7KBZV8KCNBl5rSKxIjLLTA";
                                            ReCaptcha c = ReCaptchaFactory.newReCaptcha(your_public_key, your_private_key, false);

                                            out.print(c.createRecaptchaHtml(null, null));
                                        %>
                                        <!--  <input type="submit" value="submit" />  -->
                                        <!--Kết thúc captcha -->
                                    </div>
                                    <div class="text_remember">&nbsp; </div>
                                    <div class="button_listing_input">
                                        <!--   <a  onclick="if(testFormDangKy()){document['frmRegister'].submit();}"><img  alt="Đăng nhập" src="Images/Images_css_files/b_register.jpg"></a>-->
                                        <input onclick="if(testFormDangKy()){document['frmRegister'].submit();}" type="submit" value="" name="register" class="button_register"> 
                                        <input type="hidden" name="Action" value="Register"/>
                                    </div>

                                </div>
                                <h2 class="title"> </h2> </br>
                                <div class="button_listing_input">
                                    <a href="HomeController?Action=View" rel="nofollow">
                                        <input type="button" value="Trở về trang chủ" name="submit" >
                                    </a>
                                    <a href="LoginController?Action=View" rel="nofollow">
                                        <input type="button" value="Đăng nhập" name="submit" >
                                    </a>
                                </div>
                            </div>
                            <div class="bottom_box_login">
                                <div class="lbottom_box_login"></div>
                                <div class="rbottom_box_login"></div>
                            </div>
                        </div>
                        <div class="clear"></div>
                    </div>
                </form>



                <div class="bottom_other_content">
                    <div class="lbottom_other_content"></div>
                    <div class="rbottom_other_content"></div>
                </div>
            </div>
        </div>
    </div>
